package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: hea7en
 * @Date: 2024/5/23 9:22 PM
 * @Description: 订单明细管理Mapper
 */
@Mapper
public interface OrderDetailMapper {

    /**
     * 批量插入订单明细
     * @param orderDetailList
     */
    void saveBatch(List<OrderDetail> orderDetailList);

    /**
     * 通过订单号查询订单明细
     * @param orderId
     * @return
     */
    List<OrderDetail> getByOrderId(Long orderId);
}
